{include file="pub/header" /}
	<div class="body">
		<div class="search">
			<form action="">
				<input type="text" name="start_time" id="start" placeholder="请选择开始时间" value="{if condition="!empty($start_time)"}{$start_time}{/if}" />
				<input type="text" name="end_time" id="end" placeholder="请选择结束时间"  value="{if condition="!empty($end_time)"}{$end_time}{/if}" />
				<input type="text" name="search" placeholder="请输入下拉菜单名称">
				<div class="option">
					{foreach name="categorys" item="value" key="k"}
						<span>{$value.category}</span>
					{/foreach}
				</div>
				<select name="category" id="">
					<option value="">请选择</option>
					{foreach name="categorys" item="value" key="k"}
						<option value="{$value.category}" {if condition="$category eq $value['category']"}selected{/if} >{$value.category}</option>
					{/foreach}
				</select>
				<input type="submit" value="搜索" />
				<script type="text/javascript" src="/static/laydate/laydate.js"></script>
				<!-- 实例化编辑器 -->
				<script type="text/javascript">
					laydate.render({
						elem: '#start',
						calendar: true
					});
					laydate.render({
						elem: '#end',
						calendar: true
					});
				</script>
			</form>
		</div>
		<div class="nav">
			<button onclick="delall('/admin/example/delete.html?id=');">批量删除</button>
			<a href="/admin/example/add.html">添加</a>
		</div>
		<div class="table">
			<table cellspacing="0" cellpadding="0">
				<thead>
					<tr>
						
						<th><input type="checkbox" name="all" /></th>
						<th>ID</th>
						<th>标题</th>
						<th>时间</th>
						<th>最近修改时间</th>
						<th>类型</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{foreach name="list" item="vo" }
					    <tr>
							<td><input type="checkbox" name="id" value="{$vo.id}" /></td>
							<td>{$vo.id}</td>
							<td>{$vo.title}</td>
							<td>{$vo.add_time}</td>
							<td>{$vo.update_time}</td>
							<td>{$vo.category}</td>
							<td>
								{if condition="$vo.banner eq 0"}
								<button class="top" onclick="article_top({$vo.id})">置顶</button>
								{else/}
								<button class="cancel" onclick="article_cancel({$vo.id})">取消置顶</button>
								{/if}
							</td>
							<td>
								<a href="/admin/example/update.html?id={$vo.id}" >修改</a>
								<span ajax-return="/admin/example/delete.html?id={$vo.id}">删除</span>
							</td>
						</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
		<div class="page">
			{$page}
		</div>
	</div>
{include file="pub/footer" /}
